﻿<ribbon:RibbonWindow x:Class="ReaderWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        Title="ReaderWindow"
        x:Name="ReaderWindow"
        Width="640" Height="480" Icon="../../images/Main/keys.png">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <ribbon:Ribbon x:Name="RibbonReader">
            <ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu Visibility="Collapsed" >
                </ribbon:RibbonApplicationMenu>
            </ribbon:Ribbon.ApplicationMenu>
            <ribbon:Ribbon.QuickAccessToolBar>
                <ribbon:RibbonQuickAccessToolBar Visibility="Collapsed"></ribbon:RibbonQuickAccessToolBar>
            </ribbon:Ribbon.QuickAccessToolBar>
            <ribbon:RibbonTab x:Name="ReaderTab"
                              Header="Reader">
                <ribbon:RibbonGroup x:Name="ReaderGroup"
                                    Header="Actions">
                    <ribbon:RibbonButton x:Name="ButtonRefresh"
										 LargeImageSource="../../images/actions/Refresh-64.png"
										 Label="Refresh" />                    
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
        </ribbon:Ribbon>
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" MinHeight="20"></RowDefinition>
                <RowDefinition Height="auto" MinHeight="24"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto" MinWidth="24"></ColumnDefinition>
                <ColumnDefinition Width="auto" MinWidth="100"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Button Grid.Row="0" Name="btnExtract" Width="100" Grid.Column="1">Extract</Button>
            <ProgressBar Grid.Row="1" 
                     Grid.Column="0"
                     Name="PBar"                      
                     VerticalAlignment="Center" 
                     Width="50" 
                     Height="20" 
                     Value="0" 
                     Margin="10,10,10,0"                                         
                     Visibility="Hidden">
            </ProgressBar>

            <Image Grid.Row="1" 
               Grid.Column="0"
               Source="/images/synch/cross_shield_2.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgDeviceError"
               Visibility="Visible"></Image>
            <Image Grid.Row="1" 
               Grid.Column="0"
               Source="/images/synch/accept.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgDeviceOk"
               Visibility="Hidden"></Image>
            <Label Grid.Row="1" 
               Grid.Column="1"
               VerticalAlignment="Center"
               Margin="10,10,10,0">Checking if device is connected</Label>

            <ProgressBar Grid.Row="1" 
                     Grid.Column="0"
                     Name="PBarimgFilesFound"                      
                     VerticalAlignment="Center" 
                     Width="50" 
                     Height="20" 
                     Value="0" 
                     Margin="10,10,10,0"                                         
                     Visibility="Hidden">
            </ProgressBar>

            <Image Grid.Row="2" 
               Grid.Column="0"
               Source="/images/synch/cross_shield_2.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgFilesFoundError"
               Visibility="Visible"></Image>
            <Image Grid.Row="2" 
               Grid.Column="0"
               Source="/images/synch/accept.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgFilesFoundOk"
               Visibility="Hidden"></Image>
            <Label Grid.Row="2" 
               Grid.Column="1"
               VerticalAlignment="Center"
               Margin="10,10,10,0">Checking for files on device.</Label>


            <ProgressBar Grid.Row="3" 
                     Grid.Column="0"
                     Name="PBarimgUpdateDatabase"                      
                     VerticalAlignment="Center" 
                     Width="50" 
                     Height="20" 
                     Value="0" 
                     Margin="10,10,10,0"                                         
                     Visibility="Hidden">
            </ProgressBar>

            <Image Grid.Row="3" 
               Grid.Column="0"
               Source="/images/synch/cross_shield_2.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgUpdateDatabaseError"
               Visibility="Visible"></Image>
            <Image Grid.Row="3" 
               Grid.Column="0"
               Source="/images/synch/accept.png" 
               Height="20" 
               VerticalAlignment="Center" 
               Width="20" 
               Margin="10,10,10,0"
               Name="imgUpdateDatabaseOk"
               Visibility="Hidden"></Image>
            <Label Grid.Row="3" 
               Grid.Column="1"
               VerticalAlignment="Center"
               Margin="10,10,10,0">Updating database</Label>

            <Label Grid.Row="4" 
               Grid.Column="0"
               VerticalAlignment="Center"
               HorizontalAlignment="Center"
               Margin="10,10,10,0"
               Name="lblNumberofRecordsProcessed">0</Label>
            <Label Grid.Row="4" 
               Grid.Column="1"
               VerticalAlignment="Center"
               Margin="10,10,10,0">Number of records processed</Label>
            <StackPanel Grid.Row="5"
                 Grid.ColumnSpan="2" Name="spNotonDatabase" Visibility="Hidden" >
                <Label Grid.Row="4" 
               Grid.Column="1"
               VerticalAlignment="Center"
               Margin="10,10,10,0">Scanned items not yet on database</Label>
                <ListBox 
                 Name="listboxNotonDatabase" Height="auto"></ListBox>
            </StackPanel>

        </Grid>

    </Grid>
</ribbon:RibbonWindow>
